package com.definity.toolkit.web.taglib;

import javax.servlet.jsp.JspException;


public class TextTag extends ComponentFormTag {

	private static final long serialVersionUID = -3426306344186292087L;

	public TextTag() {

	}

	@Override
	protected String getComponentName() {
		return "text";
	}
	
	@Override
	protected String createStartTag(String name, String id, Object value) throws JspException {
		return "<input type=\"text\" " + createStyleClass("common_field") + " id=\"" + id + "\" name=\"" + id + "\" value=\"" + valueToString(value) + "\" />";
	}
	
	@Override
	protected String createEndTag(String name, String id, Object value) {
		return null;
	}
	
}
